package com.jhx.mall.app.service.impl;

import com.jhx.mall.app.service.DtsAddressService;
import com.jhx.mall.dao.DtsAddressDao;
import com.jhx.mall.dao.impl.DtsAddressDaoImpl;
import com.jhx.mall.entity.DtsAddress;

import java.util.List;

public class DtsAddressServiceImpl implements DtsAddressService {

    DtsAddressDao dao = new DtsAddressDaoImpl();

    @Override
    public List<DtsAddress> selectAddress(int userId) {
        return dao.selectAddress(userId);
    }

    @Override
    public DtsAddress selectAddressDetail(int id) {
        return dao.selectAddressDetail(id);
    }

    @Override
    public int addAddress(DtsAddress address) {
        return dao.addAddress(address);
    }

    @Override
    public int upAddress(DtsAddress address) {
        return dao.upAddress(address);
    }

    @Override
    public int delAddress(int id) {
        return dao.delAddress(id);
    }
}
